function setTmOut() {
    toTest();
    setInterval(function (){
        toTest()
    },1000*60*60)
}

function toTest() {

    $.ajax({
        url: "htz/user/setTime",
        type: "get",
        statusCode:{
            404: function () {
                window.location.href="404.html";
            },
            403: function () {
                window.location.href="403.html";
            }
        }
    })
}
$(function () {
    setTmOut();
})